package com.example.cloudcashierpos.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class corecmsuserintegralrules {
    // 序列
    @Id
    private long id;

    // 总部id
    private Integer corpId;

    // 门店id
    private Integer storeId;

    // 开启积分功能(1开2否)
    private boolean enableIntegral;

    // 是否按菜品档案积分
    private boolean isFoodIntegral;

    // 消费积分（消费多少元积1分）
    private double consumeIntegral;

    // 特价菜品积分（消费多少元积1分）
    private double specialIntegral;

    // 积分抵现金（扣减多少积分抵1元）
    private double integralToCash;

    // 主卡积分时关联卡的积分比例
    private double parentIntegral;

    // 修改时间
    private Long modifyTime;

    // 赠送金额比例
    private Integer giftproportion;

    // 赠送帐户消费规则（1.优先使用赠送金额,2.优先使用本金,3.赠送金额和本金按比例使用）
    private Integer giftConsumRuleType;

    // 本金比例
    private Integer rechargeProportion;

    @Generated(hash = 344849757)
    public corecmsuserintegralrules(long id, Integer corpId, Integer storeId,
            boolean enableIntegral, boolean isFoodIntegral, double consumeIntegral,
            double specialIntegral, double integralToCash, double parentIntegral,
            Long modifyTime, Integer giftproportion, Integer giftConsumRuleType,
            Integer rechargeProportion) {
        this.id = id;
        this.corpId = corpId;
        this.storeId = storeId;
        this.enableIntegral = enableIntegral;
        this.isFoodIntegral = isFoodIntegral;
        this.consumeIntegral = consumeIntegral;
        this.specialIntegral = specialIntegral;
        this.integralToCash = integralToCash;
        this.parentIntegral = parentIntegral;
        this.modifyTime = modifyTime;
        this.giftproportion = giftproportion;
        this.giftConsumRuleType = giftConsumRuleType;
        this.rechargeProportion = rechargeProportion;
    }

    @Generated(hash = 1192287036)
    public corecmsuserintegralrules() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Integer getCorpId() {
        return this.corpId;
    }

    public void setCorpId(Integer corpId) {
        this.corpId = corpId;
    }

    public Integer getStoreId() {
        return this.storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public boolean getEnableIntegral() {
        return this.enableIntegral;
    }

    public void setEnableIntegral(boolean enableIntegral) {
        this.enableIntegral = enableIntegral;
    }

    public boolean getIsFoodIntegral() {
        return this.isFoodIntegral;
    }

    public void setIsFoodIntegral(boolean isFoodIntegral) {
        this.isFoodIntegral = isFoodIntegral;
    }

    public double getConsumeIntegral() {
        return this.consumeIntegral;
    }

    public void setConsumeIntegral(double consumeIntegral) {
        this.consumeIntegral = consumeIntegral;
    }

    public double getSpecialIntegral() {
        return this.specialIntegral;
    }

    public void setSpecialIntegral(double specialIntegral) {
        this.specialIntegral = specialIntegral;
    }

    public double getIntegralToCash() {
        return this.integralToCash;
    }

    public void setIntegralToCash(double integralToCash) {
        this.integralToCash = integralToCash;
    }

    public double getParentIntegral() {
        return this.parentIntegral;
    }

    public void setParentIntegral(double parentIntegral) {
        this.parentIntegral = parentIntegral;
    }

    public Long getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getGiftproportion() {
        return this.giftproportion;
    }

    public void setGiftproportion(Integer giftproportion) {
        this.giftproportion = giftproportion;
    }

    public Integer getGiftConsumRuleType() {
        return this.giftConsumRuleType;
    }

    public void setGiftConsumRuleType(Integer giftConsumRuleType) {
        this.giftConsumRuleType = giftConsumRuleType;
    }

    public Integer getRechargeProportion() {
        return this.rechargeProportion;
    }

    public void setRechargeProportion(Integer rechargeProportion) {
        this.rechargeProportion = rechargeProportion;
    }
}
